<!DOCTYPE html>
<html>
<head>
<script src="../resources/picker-common.js"></script>
</head>
<body>
<select id="menu">
<option>foo</option>
<option>bar</option>
</select>
<form action="../resources/popup-no-crash.html" id="form1"></form>
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
}

function openCallback() {
    document.getElementById('form1').submit();
}

function errorCallback() {
    window.location = "../resources/popup-no-crash.html";
}

window.onload = function () {
    openPicker(document.getElementById('menu'), openCallback, errorCallback);
}
</script>
</body>
</html>
